//
//  YKProgressView.m
//  baisi
//
//  Created by 吴高烽 on 16/10/11.
//  Copyright © 2016年 吴高烽. All rights reserved.
//

#import "YKProgressView.h"

@implementation YKProgressView
-(void)awakeFromNib{
    [super awakeFromNib];
    self.userInteractionEnabled = NO ;
    self.roundedCorners = 2;
    self.progressLabel.textColor = [UIColor whiteColor];
}
-(void)setProgress:(CGFloat)progress animated:(BOOL)animated{
    [super setProgress:progress animated:animated];
    NSString *text = [NSString stringWithFormat:@"%.0f%%",progress*100];
    self.progressLabel.text = [text stringByReplacingOccurrencesOfString:@"-" withString:@""];
}
@end
